<?php

require '../conn.php';

require 'config.php';

require '../inc/function.php';

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title></title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="../css/admin.css" type="text/css" />

<script type="text/javascript" src="inc/function.js"></script>

<script type="text/javascript" src="../fy_ckeditor/ckeditor.js"></script>

</head>

<body>

<?php

if ($act=='modify'){

	$news=ReStra($_POST['news']);
	$product=ReStra($_POST['product']);
	$video=ReStra($_POST['video']);
	$erweima=ReStra($_POST['erweima']);

 

	 

	$sql="update ".$language."_syconfig set 

	news='$news',
	product='$product',
	video='$video',
	erweima='$erweima'

	 

	 where s_id=1";

	mysql_query($sql) or die(mysql_error($sql));

	Msg('','');

}

$query=mysql_query('select * from '.$language.'_syconfig where s_id=1',$conn);

$row=mysql_fetch_array($query);

?>

<div id="container">

	<div class="edit">

		<h1>首页信息配置<a href="javascript:location.reload();">刷新</a></h1>

		<form name="form1" method="post" action="?act=modify">

	    <table width="100%" border="0" cellpadding="0" cellspacing="0">

        <tr>

		    <td class="edit_title" style="line-height:20px;"><strong>首页信息：</strong></td>

       		<td>&nbsp;</td>

       	</tr>

   	  	<tr>

			<td class="edit_title">新闻图片：</td>

            <td><input type="text" name="news" id="news" class="inputtext" value="<?php echo $row['news'] ?>" size="50" maxlength="50" readonly="readonly" />&nbsp;(图片尺寸：292*182)<iframe src="../upload_fy.php?file_type=0&file_id=news" frameborder="0" allowtransparency="true" scrolling="no" width="100%" height="25"></iframe></td>

        </tr>

        <tr>

          <td class="edit_title">产品图片：</td>

            <td><input type="text" name="product" id="product" class="inputtext" value="<?php echo $row['product'] ?>" size="50" maxlength="50" readonly="readonly" />&nbsp;(图片尺寸：292*182)<iframe src="../upload_fy.php?file_type=0&file_id=product" frameborder="0" allowtransparency="true" scrolling="no" width="100%" height="25"></iframe></td>

      	</tr>

        <tr>

          <td class="edit_title">视频图片：</td>

              <td><input type="text" name="video" id="video" class="inputtext" value="<?php echo $row['video'] ?>" size="50" maxlength="50" readonly="readonly" />&nbsp;(图片尺寸：292*182)<iframe src="../upload_fy.php?file_type=0&file_id=video" frameborder="0" allowtransparency="true" scrolling="no" width="100%" height="25"></iframe></td>

      	</tr>

		<tr>

		  <td class="edit_title">二维码图片：</td>

            <td><input type="text" name="erweima" id="erweima" class="inputtext" value="<?php echo $row['erweima'] ?>" size="50" maxlength="50" readonly="readonly" />&nbsp;(图片尺寸：292*182)<iframe src="../upload_fy.php?file_type=0&file_id=erweima" frameborder="0" allowtransparency="true" scrolling="no" width="100%" height="25"></iframe></td>

        </tr>

 
	  

        	<tr>

				<td class="edit_title" height="40">&nbsp;</td>

				<td><input type="submit" name="button" class="button" value="保存配置" /></td>

        	</tr>

        </table>

	</form>

	</div>

</div>

</body>

</html>